package com.bee.common.core.result;

/**
 * Created by liekkas on 2017-8-1.
 * 响应操作码
 */
public enum ResultCode {

    SUCCESS(200,"操作成功"),
    INVALID(201,"Token失效"),
    FAIL(500,"请求失败");      //请求失败业务的异常


    private final int code;

    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
